package com.feng.cloud.common.exception;

import com.feng.cloud.common.exception.auth.AuthStatus;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @ClassName BaseException
 * @Description TODO
 * @Author Better Feng
 * @Date 2019/12/17 10:29
 * @Version 1.0
 **/
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class AuthException extends RuntimeException {
    private AuthStatus authStatus;

    public AuthException(AuthStatus authStatus){
        super(authStatus.getMessage());
        this.authStatus = authStatus;
    }
}
